/*
 * Message.h
 *
 *  Created on: Nov 13, 2010
 *      Author: nobal
 */

#ifndef MESSAGE_H_
#define MESSAGE_H_

#include<string>
using namespace std;

class Message {
protected:
	string messageType;
	string message;
public:
	Message();
	Message(string msgType,string msg);
	string getMessage();
	string getMessageType();
	string encode();
	bool decode(string);
	void setMessage(string msg);
	void setMessageType(string msgType);
	virtual ~Message();
};

#endif /* MESSAGE_H_ */
